import request from '@/utils/request'

export function insertSolution(data) {
  return request({
    url: '/practice/solution/insertSolution',
    method: 'post',
    data
  })
}

export function resultBySolutionId(query) {
  return request({
    url: '/practice/solution/resultBySolutionId',
    method: 'get',
    params: query
  })
}

export function listResult(query) {
  return request({
    url: '/practice/solution/listResult',
    method: 'get',
    params: query
  })
}

export function updateSubmitProblem(query) {
  return request({
    url: '/practice/solution/updateSubmitProblem',
    method: 'get',
    params: query
  })
}

export function listStatus(query) {
  return request({
    url: '/practice/solution/listStatus',
    method: 'get',
    params: query
  })
}

export function solutionSourceById(query) {
  return request({
    url: '/practice/solution/solutionSourceById',
    method: 'get',
    params: query
  })
}

export function detection(query) {
  return request({
    url: '/practice/duplicate/detection',
    method: 'get',
    params: query
  })
}

export function listDuplicate(query) {
  return request({
    url: '/practice/duplicate/listDuplicate',
    method: 'get',
    params: query
  })
}
